package org.giovanolli.mumi.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * The Class Phone.
 */
@Entity
@Table(name = "phone")
public class Phone extends IdentificableEntity {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -4449085199009554556L;

	/** The country code. */
	@Column(name = "country_code")
	private String countryCode;

	/** The area code. */
	@Column(name = "area_code")
	private String areaCode;

	/** The phone number. */
	@Column(name = "phone_number")
	private String phoneNumber;

	/** The comment. */
	@Column(name = "comment")
	private String comment;

	/** The phone type. */
	@Column(name = "phone_type")
	@Enumerated(EnumType.STRING)
	private String phoneType;

	/**
	 * Gets the area code.
	 * 
	 * @return the area code
	 */
	public String getAreaCode() {
		return areaCode;
	}

	/**
	 * Gets the comment.
	 * 
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * Gets the country code.
	 * 
	 * @return the country code
	 */
	public String getCountryCode() {
		return countryCode;
	}

	/**
	 * Gets the phone number.
	 * 
	 * @return the phone number
	 */
	public String getPhoneNumber() {
		return phoneNumber;
	}

	/**
	 * Gets the phone type.
	 * 
	 * @return the phone type
	 */
	public String getPhoneType() {
		return phoneType;
	}

	/**
	 * Sets the area code.
	 * 
	 * @param areaCode
	 *            the new area code
	 */
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	/**
	 * Sets the comment.
	 * 
	 * @param comment
	 *            the new comment
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * Sets the country code.
	 * 
	 * @param countryCode
	 *            the new country code
	 */
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	/**
	 * Sets the phone number.
	 * 
	 * @param phoneNumber
	 *            the new phone number
	 */
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	/**
	 * Sets the phone type.
	 * 
	 * @param phoneType
	 *            the new phone type
	 */
	public void setPhoneType(String phoneType) {
		this.phoneType = phoneType;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.osoftware.mumi.dao.model.BaseObject#toString()
	 */
	@Override
	public String toString() {
		return "Phone [countryCode=" + countryCode + ", areaCode=" + areaCode + ", phoneNumber=" + phoneNumber + ", toString()=" + super.toString() + "]";
	}

}
